package com.koron.order.linepatrol.base.mapper;

import com.koron.bean.scheduleShift.ScheduleShift;
import com.koron.order.linepatrol.base.bean.po.PatrolPo;
import com.koron.order.linepatrol.base.bean.query.PatrolQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡视工单-基础信息(Patrol)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-26 15:32:33
 */
public interface PatrolMapper {

    int insertOrUpdate(PatrolPo patrol);

    int insertOrUpdateBatch(@Param("list") List<PatrolPo> patrolList);

    int insert(PatrolPo patrol);

    int insertBatch(@Param("list") List<PatrolPo> patrolList);

    int update(PatrolPo patrol);

    int deleteById(String id);

    PatrolPo queryById(String id);

    List<PatrolPo> queryPatrolByCondition(ScheduleShift scheduleShift);

    List<PatrolPo> queryList(PatrolQuery query);

    int updatePatrolInsertFlag(PatrolPo patrolPo);
}